package com.kylin.common.qrcode;

import org.iherus.codegen.qrcode.QrcodeConfig;

import java.awt.*;
import java.io.Serializable;

/**
 * 二维码生成配置信息
 *
 * @author wuhao
 * @version 1.0 - 2020/3/24
 */
public class QrcodeWordConfig extends QrcodeConfig implements Serializable {

    /**
     * 文字高度
     */
    private int wordHeight = 25;
    /**
     * 文字颜色
     */
    private Color wordColor =new Color(183,183,183);
    /**
     * 文字字体
     */
    private String wordFontFamily = "微软雅黑";
    /**
     * 文字字号
     */
    private int wordFontSize = 18;
    /**
     * 文字显示位置
     */
    private String wordPosition = CENTER;

    public static final String LEFT = "1";
    public static final String CENTER = "2";
    public static final String RIGHT = "3";


    public int getWordHeight() {
        return wordHeight;
    }

    public QrcodeWordConfig setWordHeight(int wordHeight) {
        this.wordHeight = wordHeight;
        return this;
    }

    public Color getWordColor() {
        return wordColor;
    }

    public QrcodeWordConfig setWordColor(Color wordColor) {
        this.wordColor = wordColor;
        return this;
    }

    public String getWordFontFamily() {
        return wordFontFamily;
    }

    public QrcodeWordConfig setWordFontFamily(String wordFontFamily) {
        this.wordFontFamily = wordFontFamily;
        return this;
    }

    public int getWordFontSize() {
        return wordFontSize;
    }

    public QrcodeWordConfig setWordFontSize(int wordFontSize) {
        this.wordFontSize = wordFontSize;
        return this;
    }

    public String getWordPosition() {
        return wordPosition;
    }

    public QrcodeWordConfig setWordPosition(String wordPosition) {
        this.wordPosition = wordPosition;
        return this;
    }
}
